package com.lywz.biz.common.entity.scenic;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;

/**
 * 景区实体类
 * 
 * @author Huadi Luojun
 * @date 2010-4-29
 * @updated 2010-4-30
 */
@NamedQueries( { @NamedQuery(name = "scenic.getScenicList", query = "from Scenic") })
@Entity
@Table(name = "t_scenic")
public class Scenic extends AbstractEntity {

    private static final long serialVersionUID = -3067587156749297012L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id; // ID，主键，自增

    private String name; // 景区名称

    private String englishName; // 景区英文名称

    private Integer level; // 景区级别（使用int表示）

    private String levelName; // 景区级别（使用"AAAA"字符串表示）

    private String location; // 景区位置

    private String introduction; // 简介

    private String feature; // 景区特色

    private String ticketInformation; // 门票信息

    private String tips; // 贴士

    private String contact; // 联系方式

    private String imageUrl; // 景区图片

    private String imageThumbnailUrl; // 景区缩略图

    private Integer category; // 景区所属类别 风景、人文、民俗（使用int表示）

    private String categoryName; // 景区所属类别

    private Integer attractionAmount; // 拥有景点数量

    private String recommendPath; // 推荐路线

    private String cityBelongsTo; // 景区所属城市

    private Integer city; // 景区所属城市ID

    private String countyBelongsTo; // 景区所属县

    private Integer county; // 景区所属县ID

    private Integer score; // 景区评分

    private String mapImageUrl; // 景区地图URL

    private Boolean isDeletable;

    //////////Setters, Getters and Constructors//////////
    @Column(name = "Id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "scenic_name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "scenic_englishname")
    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }

    @Column(name = "scenic_level")
    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Column(name = "scenic_location")
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Column(name = "scenic_introduction")
    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Column(name = "scenic_feature")
    public String getFeature() {
        return feature;
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    @Column(name = "scenic_ticket_information")
    public String getTicketInformation() {
        return ticketInformation;
    }

    public void setTicketInformation(String ticketInformation) {
        this.ticketInformation = ticketInformation;
    }

    @Column(name = "scenic_tips")
    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    @Column(name = "scenic_contact")
    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    @Column(name = "scenic_imageurl")
    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Column(name = "scenic_thumburl")
    public String getImageThumbnailUrl() {
        return imageThumbnailUrl;
    }

    public void setImageThumbnailUrl(String imageThumbnailUrl) {
        this.imageThumbnailUrl = imageThumbnailUrl;
    }

    @Column(name = "scenic_category")
    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    @Column(name = "scenic_attraction_amount")
    public Integer getAttractionAmount() {
        return attractionAmount;
    }

    public void setAttractionAmount(Integer attractionAmount) {
        this.attractionAmount = attractionAmount;
    }

    @Column(name = "scenic_recommend_path")
    public String getRecommendPath() {
        return recommendPath;
    }

    public void setRecommendPath(String recommendPath) {
        this.recommendPath = recommendPath;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Column(name = "scenic_mapurl")
    public String getMapImageUrl() {
        return mapImageUrl;
    }

    public void setMapImageUrl(String mapImageUrl) {
        this.mapImageUrl = mapImageUrl;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public Integer getCounty() {
        return county;
    }

    public void setCounty(Integer county) {
        this.county = county;
    }

    public void setCityBelongsTo(String cityBelongsTo) {
        this.cityBelongsTo = cityBelongsTo;
    }

    public void setCountyBelongsTo(String countyBelongsTo) {
        this.countyBelongsTo = countyBelongsTo;
    }

    public String getCityBelongsTo() {
        return cityBelongsTo;
    }

    public String getCountyBelongsTo() {
        return countyBelongsTo;
    }

    public Boolean getIsDeletable() {
        return isDeletable;
    }

    public void setIsDeletable(Boolean isDeletable) {
        this.isDeletable = isDeletable;
    }

    /** NULL Constructor */
    public Scenic() {
    }

    /** Full Constructor */
    public Scenic(Integer id, String name, String englishName, Integer level, String levelName,
            String location, String introduction, String feature, String ticketInformation,
            String tips, String contact, String imageUrl, String imageThumbnailUrl,
            Integer category, String categoryName, Integer attractionAmount, String recommendPath,
            String cityBelongsTo, Integer city, String countyBelongsTo, Integer county,
            Integer score, String mapImageUrl) {
        super();
        this.id = id;
        this.name = name;
        this.englishName = englishName;
        this.level = level;
        this.levelName = levelName;
        this.location = location;
        this.introduction = introduction;
        this.feature = feature;
        this.ticketInformation = ticketInformation;
        this.tips = tips;
        this.contact = contact;
        this.imageUrl = imageUrl;
        this.imageThumbnailUrl = imageThumbnailUrl;
        this.category = category;
        this.categoryName = categoryName;
        this.attractionAmount = attractionAmount;
        this.recommendPath = recommendPath;
        this.cityBelongsTo = cityBelongsTo;
        this.city = city;
        this.countyBelongsTo = countyBelongsTo;
        this.county = county;
        this.score = score;
        this.mapImageUrl = mapImageUrl;
    }
}
